package com.cskaoyan.bean.po;

import com.cskaoyan.util.StringToArrayUtils;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author: 陈慧颖
 * @time: Created by chy on 2022/6/4 16:51
 */

@Data
public class CouponPo {
// ? 数据库里类型 有 Integer 的,或 Date 的也是使用 String?  因为插件自动生成;
//     private Integer daysType;
    private Integer id;
    private String name;
    private String desc;
    private String tag;
    private Integer total;
    private Integer discount;
    private Integer min;
    private Integer limit;
    private Integer type;
    private Integer status;
    private Integer goodsType;
    private String  goodsValue; // mybatis 必须处理 String 与 varchar
    private String code;
    private Integer timeType;
    private Integer days;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Integer deleted;




}
